package com.ruicar.afs.cloud.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xudongdong
 * @date 2020-05-12
 */
@Data
@TableName("product_extras_plan_project")
@ApiModel(value = "附加贷方案项目表")
@NoArgsConstructor
public class ExtrasProjectProgramInfo extends BaseEntity<ExtrasProjectProgramInfo> {
    /**
     * 附加贷方案ID
     */
    @ApiModelProperty(value = "附加贷方案ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private String extrasPlanId;
    /**
     * 附加贷项目ID
     */
    @ApiModelProperty(value = "附加贷项目ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long extrasProjectId;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private int serialNumber;

    public ExtrasProjectProgramInfo(String extrasPlanId, Long extrasProjectId, int serialNumber) {
        this.extrasPlanId = extrasPlanId;
        this.extrasProjectId = extrasProjectId;
        this.serialNumber = serialNumber;
    }
}
